package com.fg.fgmall.service.impl;

import com.fg.fgmall.entity.Banner;
import com.fg.fgmall.mapper.BannerMapper;
import com.fg.fgmall.service.BannerService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class BannerServiceImpl implements BannerService {

    @Autowired
    private BannerMapper bannerMapper;

    @Override
    public List<Banner> selectAllBanner() throws Exception {
        return bannerMapper.selectAllBanner();
    }
}
